package com.cardeira.sendsms.server;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.gwt.user.client.rpc.IsSerializable;


@PersistenceCapable
public class SmsEntry implements IsSerializable {
	@Persistent
	private String text;
	@Persistent
	private String phoneNumber;
	@Persistent
	private Date date;

	private String id;
	private int stateID;
	private String appTime;
	@Persistent
	private String day;
	@Persistent
	private String clinica;
	@Persistent
	private Boolean imported;
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	private String patient;	
	@Persistent
	private String guid;
	@Persistent
	private String senderPhone;
	@Persistent
	private String senderID;
	private String mnc;
	private int deliveryStatus;
	
	public SmsEntry()
	{
		
	}
	
	public void setText(String text) {
		this.text = text;
	}
	public String getText() {
		return text;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public String getId() {
		return id;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
	public Date getDate() {
		return date;
	}

	public void setStateID(int stateID) {
		this.stateID=stateID;		
		
	}	
	public int getStateID()
	{
		return stateID;
	}

	public void setAppTime(String appTime) {
		this.appTime = appTime;
	}

	public String getAppTime() {
		return appTime;
	}

	public String getDay() {
		return this.day;
	}

	public String getClinica() {
		return this.clinica;
	}

	public String getSenderPhone() {
		return senderPhone;
	}
	public void setImported(boolean b) {
		imported=b;
		
	}

	public void setClinica(String parameter) {
		clinica=parameter;
		
	}

	public void setDay(String parameter) {
		day=parameter;
		
	}

	public void setPatient(String parameter) {
		patient = parameter;
		
	}

	public String getPatient() {
		return patient;
	}

	public void setGuid(String parameter) {
		guid = parameter;
		
	}

	public void setSenderPhone(String parameter) {
		senderPhone=parameter;
		
	}

	public void setSenderID(String parameter) {
		senderID=parameter;
		
	}

	public String getSenderID() {
		return senderID;
	}

	public String GetKey() {
		return key.toString();
	}

	public String getMnc() {
		// TODO Auto-generated method stub
		return mnc;
	}

	public int getDeliveryStatus() {
		// TODO Auto-generated method stub
		return deliveryStatus;
	}
}


